#ifndef POSTCARD_H
#define POSTCARD_H

#include <QFrame>

#include "Interfaces/defs.h"

namespace Ui
{
    class PostCard;
}

class PostCard : public QFrame
{
    Q_OBJECT

public:
    explicit PostCard(QWidget *parent = nullptr);
    ~PostCard();

    void setPost(Core::Post  &post);

    Core::Post getPost();

    void setPixmapBuf(QByteArray buf);

private slots:
    void on_btnLike_clicked();

    void on_btnComment_clicked();

    void slot_pixLabel_Clicked();

private:
    Ui::PostCard *ui;
    Core::Post m_post;
    QByteArray m_pixBuf;
};

#endif // POSTCARD_H
